package org.example.platform.design.fangwenqi;

import java.util.ArrayList;
import java.util.List;

public class Object {
    List<Person> list = new ArrayList<>();

    public void add(Person person) {
        list.add(person);
    }


    public void move(Person person) {
        list.remove(person);
    }

    public void show(State state) {
        for (Person p : list) {
            p.getState(state);
        }
    }

}
